"""
    登录接口层
"""
from config import BASE_URL
import requests

class AdminLoginAPi:

    # 登录接口方法
    @classmethod
    def login(cls,json_data):
        login_url = BASE_URL+"login"
        resp = requests.post(url=login_url,json= json_data)
        return resp


if __name__ == '__main__':
    data = {
    "username": "fhj",
    "password": "123456"
    }
    print(AdminLoginAPi.login(data).json())
